package com.xpgk.mvc.bcallVisit;

import com.jfinal.aop.Before;
import com.jfinal.plugin.activerecord.tx.Tx;
import com.xpgk.dto.RenderBean;
import com.xpgk.mvc.base.BaseController;
import com.xpgk.mvc.intoPersonnel.IntoPersonnel;
import com.xpgk.mvc.intoPersonnel.IntoPersonnelServices;

public class BcallVisitController extends  BaseController{

	public  void   index()
	{
		render("BcallVisit.html");
	}
	private BcallVisitService bcallVisitService = new BcallVisitService();
	
	/**
	 * 保存基本信息
	 * */
	@Before(Tx.class)
	public  void  saveCallVisit()
	{	
		
		//获取当前登录机构id
		String  cudid=getCUserOrganIds();
		BcallVisit bcallVisit = getModel(BcallVisit.class,"bcallVisit");
		
		RenderBean result=bcallVisitService.saveCallVisit(bcallVisit, cudid);
		renderJson(result.getMap());
	}

}
